package cn.zhj.base.mvp.ui.fragment

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import cn.zhj.base.R
import cn.zhj.base.mvp.presenter.TestPresenter
import cn.zhj.base.mvp.contract.TestContract
import cn.zhj.base.mvp.ui.base.BaseModuleFragment

class TestFragment : BaseModuleFragment<TestPresenter>() , TestContract.View{
    companion object {
        fun newInstance():TestFragment{
            val fragment = TestFragment()
            return fragment
        }
    }

    override fun createPresenter(): TestPresenter {
        return TestPresenter()
    }

    override fun initView(
        inflater: LayoutInflater,
        container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View? {
        return inflater.inflate(R.layout.activity_main , container , false)
    }

    override fun initData(savedInstanceState: Bundle?) {
    }

    override fun setData(data: Any?) {
    }

    override fun getSuccess(msg: String) {
    }


    override fun showMessage(message: String) {

    }

}